home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Bug in ODFDraw DR1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     Re:Bug in ODFDraw DR1
  2. Sent:        5/30/96 12:16 PM
  3. Received:    5/30/96 12:21 PM
  4. From:        Greg Friedman, friedman@cognosis.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 8:14 AM 5/30/96, Arni McKinley wrote:> Henri,
  9. >
  10. > A line needs to be changed in ODFDraw's CBaseShape::GetProperty():
  11. >
  12. > From:
  13. >    ->      case kTextShapeType:
  14. >              shapeType = kTextShapeType;
  15. >              break;
  16. > To:
  17. >    ->      case kTextShape:
  18. >              shapeType = kTextShapeType;
  19. >              break;
  20.  
  21. Arni,
  22.  
  23. You're correct...this is a bug in ODF 1. I've made some significant changes
  24. to Draw's scripting support for release 2 that make the fix obsolete. In
  25. Release 1, shapes have a "type" property. Shapes of type "circle", for
  26. example, can be specified as "shapes whose type is circle". In release 2,
  27. Draw implements shapes as objects, enabling the previous snippet to be
  28. replaced with "circles" or "shapes whose class is circle".
  29.  
  30. Greg.
  31.  
  32.  
  33. _________________________________________________________
  34. Greg Friedman      ODF Engineering       Apple Computer
  35.  
  36.